#include <QCoreApplication>
#include<iostream>
using namespace std;
class Button
{
public:
    Button(){}
    void Operation(){
        std::cout<<"初始化Button功能"<<std::endl;
    }
};
class Menu
{
public:
    Menu(){}
    void Operation(){
        std::cout<<"初始化Menu功能"<<std::endl;
    }
};
class Facade
{
public:
    Facade(){
        buttonobj = new Button();
        menuobj = new Menu();
    }
    void InitWindow(){
        buttonobj->Operation();
        menuobj->Operation();
    }
private:
    Button *buttonobj;
    Menu *menuobj;
};

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    Facade *f =new Facade;
    f->InitWindow();

    return a.exec();
}
